package com.hwadee.springboot_lx.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "behavior")
public class Behavior {
    @Id
    @Column(name = "BehaviorID", nullable = false)
    private Integer id;

    @Column(name = "behaviorTime")
    private Instant behaviorTime;

    @Lob
    @Column(name = "Status")
    private String status;

    @Lob
    @Column(name = "Detail")
    private String detail;

    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    @JoinColumn(name = "StudentID", nullable = false)
    private Student studentID;

}